package com.hshit.downloader.DBHelper;  
   
 import android.content.Context;  
import android.database.sqlite.SQLiteDatabase;  
import android.database.sqlite.SQLiteOpenHelper;  
   

 public class DBHelper extends SQLiteOpenHelper {  
     public DBHelper(Context context) {  
         super(context, "hshit.db", null, 1);  
     }  
       
  
     @Override  
     public void onCreate(SQLiteDatabase db) {  
         db.execSQL("create table download_info(_id integer PRIMARY KEY AUTOINCREMENT, thread_id integer, "  
                 + "start_pos integer, end_pos integer, compelete_size integer,url char)");  
         db.execSQL("create table download_lib(_id integer PRIMARY KEY AUTOINCREMENT, name char, singer char "
        		 + "url_download char, path_location char)");
     }  
     
     @Override  
     public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {  
   
     }  
   
 }